package com.chinacoal.microservice.api.model.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.chinacoal.microservice.model.common.Entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ccms_utask_callback")
@ApiModel(value="审批回调配置实体",description="审批回调配置实体")
public class ApproveCallBackEntity extends Entity<ApproveCallBackEntity>{

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value ="主键Id", example="", required=true)
	@TableId("callback_id")
	private String callbackId;
	
	@ApiModelProperty(value ="应用Id", example="", required=true)
	@TableField("sys_id")
	private String sysId;
	
	@ApiModelProperty(value ="应用编码", example="", required=true)
	@TableField("sys_code")
	private String sysCode;
	
	@ApiModelProperty(value ="业务编码", example="", required=true)
	@TableField("biz_code")
	private String bizCode;
	
	@ApiModelProperty(value ="回调模式", example="1-不执行回调，2-本地回调，3-远程回调", required=true)
	@TableField("callback_mode")
	private String callbackMode;
	
	@ApiModelProperty(value ="业务表名", example="", required=false)
	@TableField("biz_tab_name")
	private String bizTabName;
	
	@ApiModelProperty(value ="业务表主键", example="", required=false)
	@TableField("tab_primary_key")
	private String tabPrimaryKey;
	
	@ApiModelProperty(value ="回调函数", example="", required=false)
	@TableField("callback_func")
	private String callbackFunc;
	
	@ApiModelProperty(value ="回调函数参数", example="", required=false)
	@TableField("callback_param")
	private String callbackParam;
	
	@ApiModelProperty(value ="回调函数请求方式", example="post/get", required=false)
	@TableField("method")
	private String method ; 

	@ApiModelProperty(value ="回调函数描述", example="", required=false)
	@TableField("callback_desc")
	private String callbackDesc ; 
	
	@Override
	protected Serializable pkVal() {
		return this.callbackId;
	}
}
